package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    void paySuccess(String outTradeNo);

    OrderPaymentVO paymentPreprocess(OrdersPaymentDTO ordersPaymentDTO);

    OrderVO getOrderWithDetail(Long id);

    void userCancelOrderById(Long id);

    void repetition(Long id);

    void reminder(Long id);

    PageResult pageQueryOrdersForUser(Integer page, Integer pageSize, Integer status);

    PageResult conditionPageSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();


    void confirmOrder(OrdersConfirmDTO ordersConfirmDTO);

    void rejectOrder(OrdersRejectionDTO ordersRejectionDTO);

    void completeOrder(Long id);

    void adminCancelOrder(OrdersCancelDTO ordersCancelDTO);

    void deliveryOrder(Long id);

}
